Properly ignore BadWindow and BadDrawable in get_child_info_handler()
authorMaks Naumov <maksqwe1@ukr.net>
Sun, 11 Jan 2015 18:34:56 +0000 (10:34 -0800)
committerMatthias Clasen <mclasen@redhat.com>
Sun, 11 Jan 2015 19:33:10 +0000 (14:33 -0500)
Signed-off-by: Maks Naumov <maksqwe1@ukr.net>
https://bugzilla.gnome.org/show_bug.cgi?id=742771

gdk/x11/gdkasync.c

index bcc6ac75a2a68f9697aa1c7f528a9cc23bd5fa6b..a0ad44a1d1fcb335fc92f534d739fdc5b44f7020 100644 (file)
@@ -476,7 +476,7 @@ get_child_info_handler (Display *dpy,
   if (rep->generic.type == X_Error)
     {
       state->child_has_error = TRUE;
-      if (rep->error.errorCode != BadDrawable ||
+      if (rep->error.errorCode != BadDrawable &&
          rep->error.errorCode != BadWindow)
        {
          state->have_error = TRUE;